package com.category.douyijia.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.category.douyijia.base.BaseModel;

/**
 * 实体类继承基础类表示订单主表的实体类
 * @author jiangmengyang
 * @version v1.0
 * date time 2021年7月18日17:40:13
 */
public class OrdMaster extends BaseModel<OrdMaster> {

	/**
	 * 序列化字符串
	 */
	private static final long serialVersionUID = 6738555365450411047L;
     
	/**
	 * 类的属性 订单编号
	 */
	private String ordId;
	/**
	 * 订单状态
	 */
	private int ordState;
	/**
	 * 订单状态
	 */
	private int payState;
	/**
	 * 总金额
	 */
	private int totalMoney;
	/**
	 * 更新时间
	 */
	private Date turnoverTime;
	/**
	 * 创建时间 
	 */
	private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
	/**
	 * 买家地址
	 */
	private String buyerSite;
	/**
	 * 买家电话
	 */
	private String buyerTel;
	/**
	 * 买家名称
	 */
	private String buyerName;
	/**
	 * 删除状态
	 */
	private int deleteState;
	
	public String getBuyerTel() {
		return buyerTel;
	}
	public void setBuyerTel(String buyerTel) {
		this.buyerTel = buyerTel;
	}
	public int getDeleteState() {
		return deleteState;
	}
	/**
	 * 设置订单主表删除状态
	 * 0表示未删除，1表示已删除
	 * @param deleteState
	 *传入的类型是整型
	 *默认值为0
	 */
	public void setDeleteState(int deleteState) {
		/*
		 * 传入状态参数限制为0或1
		 * 如果参数超出范围默认设置为0
		 */
		if(deleteState==0 || deleteState==1){
			this.deleteState = deleteState;
		}else{
			this.deleteState = 0;
		}
		
	}
	public String getOrdId() {
		return ordId;
	}
	public void setOrdId(String ordId) {
		this.ordId = ordId;
	}
	public int getOrdState() {
		return ordState;
	}
	public void setOrdState(int ordState) {
		this.ordState = ordState;
	}
	public int getPayState() {
		return payState;
	}
	/**
	 * 设置订单主表支付状态
	 * 0表示未支付，1表示已支付
	 * @param payState
	 *传入的类型是整型
	 *默认值为0
	 */
	public void setPayState(int payState) {
		/*
		 * 传入状态参数限制为0或1
		 * 如果参数超出范围默认设置为0
		 */
		if(payState==0 || payState==1) {
			this.payState = payState;
		}else{
			this.payState = 0;
		}
	}
	public int getTotalMoney() {
		return totalMoney;
	}
	public void setTotalMoney(int totalMoney) {
		this.totalMoney = totalMoney;
	}
	public Date getTurnoverTime() {
		return turnoverTime;
	}
	public void setTurnoverTime(Date turnoverTime) {
		this.turnoverTime = turnoverTime;
	}
	public SimpleDateFormat getDateFormat() {
		return dateFormat;
	}
	public void setDateFormat(SimpleDateFormat dateFormat) {
		this.dateFormat = dateFormat;
	}
	public String getBuyerSite() {
		return buyerSite;
	}
	public void setBuyerSite(String buyerSite) {
		this.buyerSite = buyerSite;
	}
	public String getBuyerName() {
		return buyerName;
	}
	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}
	
	
}
